package cn.simple.filetools.config;

import cn.simple.filetools.annotation.Excels;
import cn.simple.filetools.poi.excel.PoiExcelDataConvertProcessor;
import cn.simple.filetools.poi.excel.support.DefaultPoiExcelDataConvertProcessor;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author jiangjinjian
 * @date 2024/8/27 20:28
 * @description bean的配置类
 */
@Configuration
public class BeanConfig {

    @Bean
    @ConditionalOnMissingBean
    public PoiExcelDataConvertProcessor poiExcelDataConvertProcessor() {
        return new DefaultPoiExcelDataConvertProcessor();
    }
}
